package com.mt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mt.enums.OrderStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Wang
 * @Description 订单列表显示VO
 * @date 2021/1/3-23:58
 */

@Data
public class OrderListVO {

    @ApiModelProperty(value = "订单id")
    private String orderId;

    private Integer userId;

    @ApiModelProperty(value = "对应的电影场次")
    private Integer scheduleId;

    private String cinemaName;

    private Integer cinemaId;

    private String poster;

    private String hallName;

    private BigDecimal payment;

    private OrderStatus orderStatus;

    private String filmName;

    private Integer filmId;

    @ApiModelProperty(value = "排片日期")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone="GMT+8")
    private String scheduleDate;

    @ApiModelProperty(value = "开场时间")
    @JsonFormat(pattern = "HH:mm:ss")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
